# -*- coding: utf-8 -*-
"""
    APF.config
    ~~~~~~~~~~~~~~
    配置项
    :copyright: (c) 2018 XJJ by CornWu
"""

from os import getenv

GLOBAL={
    #应用程序名.
    "AppName": "API插件平台",

    # Swagger ui version.
    "SwaggerUiVersion": "2",

    # Swagger description.
    "SwaggerDescription": "Powered by 新境界-AI团队",

    # 版本
    "Version":"1.0.0.0",

    #自定义进程名.
    "ProcessName": "ApiPluginsFramework",

    # 监听地址
    "Host": getenv("apf_host", "0.0.0.0"),

    # 监听端口.
    "Port": getenv("apf_port", 10140),

    # 应用日志记录级别, 依次为 DEBUG, INFO, WARNING, ERROR, CRITICAL.
    "LogLevel": getenv("apf_loglevel", "DEBUG")
}